<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
 	 xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
<head>
  <title><ui:insert name="title">Travel Dream Home</ui:insert></title>
</head>

<body>
	<h:outputText value="#{createProductMB.title}" /><br/>
	Create new Product<br/>
	<h:form>
	Product Name: 

	<h:inputText id="name" value="#{createProductMB.name}" required="true" requiredMessage="This Field is required!"/>
	<h:message for="name" style="color:red;"/>
	<br/>Description:<br/>
	<h:inputTextarea id="description" value="#{createProductMB.description}" rows="10" cols="40" required="true" requiredMessage="This Field is required!"/>
	<h:message for="description" style="color:red;"/>
	<br/>Web Site:
	<h:inputText id="site" value="#{createProductMB.site}"  required="true" requiredMessage="This Field is required!"/>
	<h:message for="site" style="color:red;"/>
	<br/>Cost:
	<h:inputText id="cost" value="#{createProductMB.cost}"  required="true" requiredMessage="This Field is required!"/><br/>
	<h:message for="cost" style="color:red;"/>
	
	<h:commandLink action="#{createProductMB.createProduct()}" value="Create"/>	
	</h:form>
</body>

</html>
